<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Language" content="fr">
	<link rel="stylesheet" type="text/css" href="<s:url value="style.css"/>" />
	<title>Espace client - Cagilo, société de service aux entreprises</title>
</head>

<body>
<div id="page" />

<div id="header">
	<div id="logo"><!-- <img src="images/logo.jpeg" alt="Cagilo" width="30"> -->
	<span style="color: #c0c0c0; font-size: 24px;"><em>CAGILO</em></span><br/>
	Une longueur d'avance</div>
</div>

<div id="menu">
	<s:if test="!#session.connect">
	<a href="">Qui sommes-nous ?</a> |
	<a href="">Nos services</a> |
	<a href="">Nos partenaires</a> |
	<a href="">Mécenat et sponsoring</a> |
	<s:url id="login" action="setUplogin"/>
	<td><s:a href="%{login}">Se connecter</s:a>
	</s:if>
	<s:else>
	<s:url id="disconnect" action="disconnect"/>
	<s:a href="%{disconnect}">Me déconnecter</s:a> |
	<s:if test="%{#session.role=='client'}">
	<s:url id="profil" action="clientProfil"><s:param name="client.id" value="#session.rid"/></s:url>
	<s:a href="%{profil}">Mon Profil</s:a> |
	<s:url id="projet" action="projetListClient"><s:param name="client.id" value="#session.rid"/></s:url>
	<s:a href="%{projet}">Mes Projets</s:a>
	</s:if>
	<s:else>
	<s:if test="%{#session.role=='agent'}">
	<s:url id="profil" action="agentProfil"><s:param name="agent.id" value="#session.rid"/></s:url>
	<s:a href="%{profil}">Mon Profil</s:a> |
	<s:url id="projet" action="projetListAgent"><s:param name="agent.id" value="#session.rid"/></s:url>
	<s:a href="%{projet}">Mes Projets</s:a>
	</s:if>
	<s:else>
	<s:if test="%{#session.role=='admin'}">
	<s:url id="profil" action="agentProfil"><s:param name="agent.id" value="#session.rid"/></s:url>
	<s:a href="%{profil}">Mon Profil</s:a> |
	<s:url id="listeClient" action="clientList"/>
	<s:a href="%{listeClient}">Liste des Clients</s:a> |
	<s:url id="listeAgent" action="agentList"/>
	<s:a href="%{listeAgent}">Liste des Agents</s:a> |
	<s:url id="listeProjet" action="projetList"/>
	<s:a href="%{listeProjet}">Liste des Projets</s:a> |
	<s:url id="insert" action="setUpForInsertOrUpdateProjet"/>
	<s:a href="%{insert}">Nouveau Projet</s:a> |
	<s:url id="insertA" action="setupForNewUpdateAgent"/>
	<s:a href="%{insertA}">Nouvel Agent</s:a> |
	<s:url id="insertC" action="setupForNewClient"/>
	<s:a href="%{insertC}">Nouveau Client</s:a> |
	</s:if>
	</s:else>
	</s:else>
	</s:else>
	
	
</div>